home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / DOCVIEW.PAK / EDITLIST.CPP < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  23 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1993, 1995 by Borland International, All Rights Reserved
  4. //
  5. //   Provides templates and DLL access to TEditView and TListView
  6. //----------------------------------------------------------------------------
  7. #include <owl/pch.h>
  8. #include <owl/listview.h>
  9. #include <owl/editview.h>
  10. #include <owl/filedoc.h>
  11. #include <owl/docmanag.h>
  12.  
  13. DEFINE_DOC_TEMPLATE_CLASS(TFileDocument, TListView, ListTemplate);
  14. DEFINE_DOC_TEMPLATE_CLASS(TFileDocument, TEditView, EditTemplate);
  15.  
  16. _OWLLINK(rTListView); // force TListView::Streamer to be linked in
  17. _OWLLINK(rTEditView); // force TEditView::Streamer to be linked in
  18.  
  19. EditTemplate atpl("Text files, EditView", "*.txt", 0, "TXT", dtAutoDelete|dtUpdateDir);
  20. ListTemplate btpl("Text files, ListView", "*.txt", 0, "TXT", dtAutoDelete|dtUpdateDir);
  21. ListTemplate ctpl("Batch files, ListView", "*.bat", 0, "BAT", dtAutoDelete|dtUpdateDir);
  22. EditTemplate dtpl("Source files, EditView", "*.cpp;*.h",0,0,dtAutoDelete|dtUpdateDir);
  23.